//
// Created by liushuai on 12/8/19.
//
#include "bublesort.h"
std::vector<int> bublesort(std::vector<int> sortVec){
    int length = sortVec.size();
    for(int begin = 0;begin<length-1;begin++){
        for(int second = begin+1;second<length;second++){
            if(sortVec.at(begin)>sortVec.at(second))
                std::swap(sortVec.at(begin),sortVec.at(second));
        }
    }
    return sortVec;
}
